<template>
  <div
    class="jy-style-height copyright-box"
    :class="{
      ' Cultural-box-loop': !route.meta.loopType,
    }"
    :style="{
      'background-image': `url(${publicUrls + 'free/style15/copyrightBg1.png' + '?imageView2/3/format/webp'})`,
    }"
  >
    <div class="cultural-bg">
      <div class="copyright-heard">
        <div class="heard-blank">
          <i class="freeIcon" @click="blankHome">&#xe642;</i>
        </div>
        <div class="heard-title">
          <span>版权声明</span>
        </div>
      </div>
      <div
        class="copyright-content"
        :style="{
          'background-image': `url(${publicUrls + 'free/style15/copyrightBg2.png' + '?imageView2/3/format/webp'})`,
        }"
      >
        <scrollBox
          color="rgba(63, 95, 92, 1)"
          :scrollSrc="publicUrls + 'free/style15/pen.png'"
          v-if="Scrollheights"
          :remarks="commonStore.copyrightInfo"
          :byid="234"
          :height="getScrollWComputed"
           :tabbmScroll="getTabmComputed"
        >
          <template #solidBorder>
            <div class="solidBorder-child"></div>
          </template>
        </scrollBox>
      </div>
      <!-- <div class="content-door">
        <i class="iconfonts">&#xe6dd;</i>
        <span>永不落幕的展览与展示平台</span>
      </div> -->
    </div>
    <MenuNavigation />
  </div>
</template>

<script lang="ts">
export default defineComponent({
  name: 'style10',
});
</script>  

<script setup lang="ts">
import { publicUrls, doorUrl } from '@/utils/minxin';
import { commonDataStore, useProjectStore } from '@/store';
import { defineComponent, nextTick, ref, computed } from 'vue';
import { useRouter, useRoute } from 'vue-router';
import ScrollBox from '../scrollBox10.vue';
import MenuNavigation from '@/freeComponents/menuNavigation/index.vue';

const commonStore = commonDataStore();
const store = useProjectStore();
const router = useRouter();
const route = useRoute();
const content = ref(null);
const Scrollheights = ref();

let viewportHeight = window.innerHeight;
Scrollheights.value = viewportHeight * 0.4;
const getScrollWComputed = computed(() => {
  let rootNode = document.documentElement;

  // 获取计算后的样式
  let computedStyle = window.getComputedStyle(rootNode);

  // 读取字体大小（注意这里返回的可能是一个包含单位的字符串，如"16px"）
  let fontSize = computedStyle.fontSize;

  // 如果你需要一个数字值（不带单位）进行计算，你可能需要解析这个字符串
  // 例如，使用正则表达式或split()方法去除单位，并将结果转换为数字
  let fontSizeNumber = parseFloat(fontSize.replace(/[^0-9.-]/g, ''));
  let heights = (fontSizeNumber / 144) * 468;
  return heights;
});
const getTabmComputed = computed(() => {
  let rootNode = document.documentElement;

  // 获取计算后的样式
  let computedStyle = window.getComputedStyle(rootNode);

  // 读取字体大小（注意这里返回的可能是一个包含单位的字符串，如"16px"）
  let fontSize = computedStyle.fontSize;

  // 如果你需要一个数字值（不带单位）进行计算，你可能需要解析这个字符串
  // 例如，使用正则表达式或split()方法去除单位，并将结果转换为数字
  let fontSizeNumber = parseFloat(fontSize.replace(/[^0-9.-]/g, ''));
  let heights = (fontSizeNumber / 144) * 24;
  return heights;
});
const blankHome = () => {
  store.menuId = null;
  router.push({ name: route.meta.loopType ? 'exhibitionHome' : 'templateedit' });
};
</script>

<style scoped lang="less">
.copyright-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 40px 60px;
  padding-bottom: 0px;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
.Cultural-box-loop {
  padding-top: 20px;
}
.cultural-bg {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.copyright-heard {
  position: relative;
  display: flex;
  // align-items: center;
  justify-content: center;
  width: 1320px;
  height: 66px;
  margin-bottom: 14px;

  .heard-title {
    display: flex;
    align-items: center;
    height: 56px;
    span {
      font-family: SourceHanSerifCN-Bold;
      font-size: 36px;
      line-height: 56px;
      text-align: center;
      color: rgba(2, 76, 63, 1);
    }
  }
  .heard-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #c3b7a3;
    box-shadow: 0.5px 0.5px 3px 0px rgba(0, 0, 0, 0.15) inset;
    .freeIcon {
      cursor: pointer;

      font-size: 36px;
      line-height: 36px;
      color: rgba(250, 238, 220, 1);
    }
  }
}

.copyright-content {
  display: flex;
  width: 1320px;
  height: 740px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 130px;

  box-shadow: 0px 6px 10px 0px rgba(0, 0, 0, 0.1);
  .scrollBox-box {
    width: 100%;
    height: 100%;
  }
}
.copyrightInfo {
  width: 100%;
  height: 100%;
}

.solidBorder-child {
  width: 2px;
  height: 100%;
  background: #c3b7a3;
  border-radius: 1px;
  opacity: 0.6;
}
:deep(.solid-box-parent) {
  // position: absolute;
  // right: -0px;
}
:deep(.unit-exbi-remarks-info-remarks) {
  width: calc(100%);
}
:deep(.solid-box-parent) {
  position: absolute;
  right: -65px;
}
:deep(.templatestyle1-scroll-box-tumb) {
  display: flex;
  justify-content: center;
  img {
    width: 24px;
    height: 24px;
  }
}
:deep(.unit-exbi-remarks-info-remarks) {
  * {
    color: rgba(51, 51, 51, 1) !important;

    color: #333;
    text-align: justify;

    /* 正文 */
    font-family: 'Microsoft YaHei';
    font-size: 16px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 200% !important; /* 32px */
    // opacity: 0.6;
  }
}
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  .iconfonts {
    font-size: 25px;
    line-height: 32px;
    color: rgba(156, 180, 158, 1);
    margin-top: 3px;
  }
  span {
    font-family: PingFang SC;
    font-size: 16px;
    line-height: 22.4px;
    text-align: left;
    color: rgba(156, 180, 158, 1);
    margin-left: 8px;
  }
}
// :deep(.tumb-max) {
//   top: calc(468px - 98px) !important;
// }
.content-door {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  position: absolute;
  bottom: 0;

  .iconfonts {
    font-size: 26px;
    color: #85868b;
    margin-bottom: 4px;
    line-height: 32px;
  }
  span {
    font-family: PingFang SC;
    font-size: 16px;
    line-height: 32px;
    color: #85868b;
    margin-left: 20px;
    padding-bottom: 7px;
  }
}
:deep(.tumb-max) {
  left: calc(100% - 24px) !important;
}
:deep(.templatestyle1-scroll-box-tumb img) {
  width: 30px;
  height: 30px;
  margin-top: -4px;
  transform: scale(1.1);
}
</style>